﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Model.ClienteModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ListaTodosCliente
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<p>
    <%: Html.ActionLink("Create New", "Create") %>
</p>
<table>
    <tr>
        <th></th>
        <th>
            Nome
        </th>
        <th>
            Login
        </th>
        <th>
            Email
        </th>
        <th>
            Estado
        </th>
    </tr>

<% foreach (var item  in Model) { %>
    <tr>
        <td>
            <%: Html.ActionLink("Editar", "Edit", new {  id=item.IDcliente }) %> |
            <%: Html.ActionLink("Detalhes", "Details", new { id = item.IDcliente })%> |
            <%: Html.ActionLink("Exclusão", "Delete", new { id = item.IDcliente })%>
            
        <td>
            <%: item.cnome %>
        </td>
        <td>
            <%: item.clogin %>
        </td>
        <td>
            <%: item.cemail %>
        </td>
        <td>
            <%: item.cestado %>
        </td>
    </tr>  
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Menu" runat="server">
</asp:Content>
